import { defineStore } from 'pinia';
import { getDetail } from "@/services/modules/detail"
const useDetailStore = defineStore('detail', {
  state: () => ({
    detailData: null
  }),
  actions: {
    async getDetailData(houseId) {
      const { data } = await getDetail(houseId)
      this.detailData = data
    }
  },
  getters: {},
})

export default useDetailStore

